package com.suxin.exception.assertM;

/**
 * @author Tang
 * @classname ResponseEnum
 * @description [  ]
 * @date 2022/10/27 17:09
 */
public enum ResponseEnum implements BusinessExceptionAssert {

    /**
     * BAD_LICENCE_TYPE
     */
    BAD_LICENCE_TYPE(7001, "Bad licence type."),

    /**
     * LICENCE_NOT_FOUND
     */
    LICENCE_NOT_FOUND(7002, "Licence not found.")
    ;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private final Integer code;
    private final String msg;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return msg;
    }


    public static void main(String[] args) {
        LICENCE_NOT_FOUND.assertNotNull(null);
    }
}
